package com.osti.mytest;

import android.os.Bundle;
import android.preference.EditTextPreference;

import android.preference.PreferenceActivity;
import android.text.method.DigitsKeyListener;

public class ActivityPrefs extends PreferenceActivity
{
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		addPreferencesFromResource(R.xml.apppreferences);
		
		EditTextPreference victoryDefault = (EditTextPreference)findPreference("victory_key");
		victoryDefault.getEditText().setKeyListener(DigitsKeyListener.getInstance());
		
		EditTextPreference drawDefault = (EditTextPreference)findPreference("draw_key");
		drawDefault.getEditText().setKeyListener(DigitsKeyListener.getInstance());
	}
}
